package sales.managedbean;

import javax.ejb.EJB;
import company.entity.Company;
import javax.faces.bean.ManagedBean;
import java.util.List;
import company.session.stateless.CompanySessionBean;
import java.io.Serializable;
import javax.faces.bean.ViewScoped;

@ManagedBean
@ViewScoped
public class TestGetCompany implements Serializable{
  
     
    @EJB
    CompanySessionBean companySessionBean;
    private Company selectedCompany;

    public TestGetCompany () {
        selectedCompany=new Company();
    }
    

    public List <String> getCompanyNames() {
        return companySessionBean.getCompanyNames();
 
    }

    public Company getSelectedCompany() {
        return selectedCompany;
    }

    public void setSelectedCompany(Company selectedCompany) {
        this.selectedCompany = selectedCompany;
    }
}
